package day06;

public class Circle extends Shape {
    private double radius;

    public Circle(double radius, String color) {
        super(color);
        this.radius = radius;
    }

    @Override
    public double getArea() {
        return Math.PI * radius * radius;
    }

    @Override
    public double getPer() {
        return 2 * Math.PI * radius;
    }

    @Override
    public void showAll() {
        System.out.println("Circle:");
        System.out.println("Area: " + getArea());
        System.out.println("Circumference: " + getPer());
        System.out.println("Color: " + getColor());
    }
}
